﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ArduinoAnalyzer
{
    public static class IEnumeratorExtensions
    {
        public static T GetNext<T>(this IEnumerator<T> that)
        {
            if (that.MoveNext())
                return that.Current;
            else
                return default(T);
        }
    }
}
